import { useState } from 'react'
import { useRoutes,Link } from "react-router-dom"
import router from './router'
// import 'antd/dist/reset.css';// 全局，全部组件的样式都引入了
function App() {
  const [count, setCount] = useState(0)
  const outlet = useRoutes(router)
  return (
    <div className='App'>
      {/* 占位符组件，类似于窗口，用来展示组件的，有点像vue中的router-view */}
      {/* <Link to='/home'>Home</Link>
      <Link to='/about'>About</Link>
      <Link to='/user'>User</Link> */}
      {/* <Outlet></Outlet> */}
      {outlet}
    </div>
  )
}

export default App
